package unclassified.simple;

public class PerfectNumber_507 {

    public boolean checkPerfectNumber(int num) {
        if (num <= 1) {
            return false;
        }
        int res = 1;
        for (int i = 2; i < num; i++) {
            if (num % i == 0) {
                res += i;
            }
        }
        return res == num;
    }


}
